package cn.cs.client;

import cn.cs.config.CsConfiguration;
import cn.cs.fallback.AgentHandleComplaintClientFallBack;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "cs-user-provider", configuration = CsConfiguration.class, fallback = AgentHandleComplaintClientFallBack.class)
public interface AgentHandleComplaintClient {

    @RequestMapping(value = "/getComplaintCount", method = RequestMethod.POST)
    Map<String,Object> getComplaintCount(@RequestBody Map<String, Object> param);
    @RequestMapping(value = "/getComplaintInfo", method = RequestMethod.POST)
    Map<String,Object> getComplaintInfo(@RequestParam("id") String id);
    @RequestMapping(value = "/handleComplaint", method = RequestMethod.POST)
    int handleComplaint(@RequestBody Map<String, Object> map);
    @RequestMapping(value = "/getComplaintLsit", method = RequestMethod.POST)
    List<Map<String,Object>> getComplaintLsit(@RequestBody Map<String, Object> param);
}
